# -*- coding: utf-8 -*-
# @author: wch
# @file: flip.py
# @time: 2023/2/9 16:24

# 图像的翻转
# flip（img，flipcode）
# flipCode ==0  上下翻转
# flipCode >0  左右翻转
# flipCode < 0  上下+左右翻转

import cv2
import numpy as np

img = cv2.imread(r"E:\code\opencv\media\2.jpg")
new = cv2.flip(img, 0)
new1 =cv2.flip(img,1)
new2 =cv2.flip(img,-1)

cv2.imshow("new", new)
cv2.imshow("new1",new1)
cv2.imshow("new2",new2)
cv2.waitKey(0)
